from django.urls import path
from . import views
from utils.converters import UUIDConverter, MobileConverter
from django.urls import register_converter
register_converter(UUIDConverter, 'uuid')
register_converter(MobileConverter, 'mobile')

urlpatterns = [
    # 图形验证码
    path('image_codes/<uuid:uuid>/', views.ImageCodeView.as_view()),
    # 短信验证码
    path('sms_codes/<mobile:mobile>/', views.SmsCodeView.as_view()),
]
